<%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" language="java" session="true" %>
	<%@ page import="java.util.List" %>
	<%@ page import="sri.proiect.controllers.*" %>
	<%@ page import="sri.proiect.search.*" %>
	<%@ page import="sri.proiect.models.*" %>


<div id="left">
<div id="subPages">	
<form method="post" name="form_two" action="AdvancedSearchController">
 
  <fieldset>
    
  <label for="hotel">Nume Hotel:</label>
  <input type="text" id="hotel" name="hotel" size="20" value="" /><br />

  <label for="oras">Oras:      </label>
  <input type="text" id="oras" name="oras" size="20" value="" /><br />
    
  <label for="judet">Judet:     </label>
  <input type="text" id="judet" name="judet" size="20" value="" /><br />
  
  <label for="nrStele">Numar stele:</label>
  <select name="nrStele" id="nrStele" size=1 >
    <option value="" SELECTED>Selecteaza
    <option value="1">*
    <option value="2">**
    <option value="3">***
    <option value="4">****
    <option value="5">*****
  </select>
  
  <label for="judet">Detalii:      </label>
  <input type="text" id="detalii" name="detalii" size="20" value="" /><br />
  
  <input name="Submit" class="submit-btn" value="Cauta" type="submit" />
  </fieldset>
  </form>
  </div>
  </div>
  <% List<Hotel> hotels = (List<Hotel>) request.getAttribute("searchResult"); 
	%>
	<table cellpadding="0" cellspacing="0" width="100%" border="0"
		align="left" background="#fff url(images/bg_main.png) 50% 0 repeat-y">
	<%
		for (int i = 0; i < hotels.size(); i++) {
			Hotel hotel = (Hotel) hotels.get(i);
	%>
	<tr>
		<td>
		<table class='unitate'>

			<td valign='top' width='124'>
			<table border=0 cellspacing=3 cellpadding=3 width='100%'>
			</table>
			</td>
			<td valign='top' align='left'>
			<table border=0 cellspacing=3 cellpadding=3 width='100%'
				align='center'>
				<tr>
					<td valign='top' align='left'><a
						href='hotelDetails.jsp?index=<%=i%>'> <b> <font
						color='#BB0000'><%=hotel.getNume()%></font></b></a>&nbsp;
					, <%=hotel.getNrStele()%> stele<br>
					<i><%=hotel.getOras()%>, <%=hotel.getJudet()%></i><br>
					<i><%=hotel.getShortDescription()%></i><br>
				</tr>
			</table>
			</td>
		</table>
		<br>
		</td>
	</tr>
	<tr>
		<td>
		<hr width=100% />
		</td>
	</tr>
	<%
		}
	%>
</table>